<template>
	<view class="content">
		<uni-card :is-shadow="false" padding="10px 0">
			<uni-forms ref="baseForm" :modelValue="baseFormData" label-position='top'>
				<uni-forms-item label="标题" required>
					<uni-easyinput type="text" v-model="baseFormData.name" placeholder="请输入标题" />
				</uni-forms-item>
				<uni-forms-item label="楼层" required>
					<uni-easyinput type="text" v-model="baseFormData.floor" placeholder="请输入楼层" />
				</uni-forms-item>
				<uni-forms-item label="照片上传" required>
					1111
				</uni-forms-item>
				<uni-forms-item label="检查结果">
					<uni-data-checkbox v-model="baseFormData.type" :localdata="type" />
				</uni-forms-item>
				<uni-forms-item label="责任人">
					<uni-data-select v-model="baseFormData.harmonize_id" :localdata="user" ></uni-data-select>
				</uni-forms-item>
				<uni-forms-item label="整改期限">
					<uni-data-select v-model="baseFormData.term" :localdata="term" ></uni-data-select>
				</uni-forms-item>
			</uni-forms>
			<button class="mt15" type="primary" @click="submit('baseForm')">提交</button>
		</uni-card>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				baseFormData: {
					name:'',
					floor:'',
					type: 1,
					role_id: 0,
					personal_id:0,
					term:0,
				},
				type:[{text: '维修',value: 1}, {text: '处罚',value: 0}],
				term:[{text: '1天',value: 1}, {text: '2天',value: 2}, {text: '3天',value: 3}],
				user:[{text: '沈嗷嗷',value: 1}, {text: 'xuchao',value: 2}]
			}
		},
		onLoad() {

		},
		methods: {
			onLink(url){
				uni.navigateTo({
					url: '/pages/'+url
				});
			},
			submit(){
				
			},
		}
	}
</script>

<style>
</style>
